<?php
include_once("../../service/specialProductService.php");
include_once("../../util/imageUtil.php");
    
$imgPaths = $_POST["imgPaths"];
$speProId = $_POST["id"];
$arrayOfImagePath = preg_split("/,/", $imgPaths);  

foreach($arrayOfImagePath as $each){
    createSpecialImage($speProId, $each);
	crop(120, 190, "../../image/product/speical/".$speProId."/".$each,"../../image/product/speical/".$speProId."/thumbnail/".$each);
}
?>